package com.assistant.admin.controller;

import com.assistant.admin.service.VisualizationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class VisualizationController {
    @Autowired
    private VisualizationService visualizationService;

    @GetMapping("/getKindNums")
    public List showKindNumC() {
        return visualizationService.getKindOfnum();
    }

    @GetMapping("/showDomotoryNums")
    public List<String[]> getDomotory(){
        return visualizationService.getDormitoryNum();
    }
}
